//
//  PatternOfPaymentView.m
//  StandardizedProduct
//
//  Created by 宁宁 on 16/7/22.
//  Copyright © 2016年 ym. All rights reserved.
//

#import "PatternOfPaymentView.h"

@implementation PatternOfPaymentView

/**选择支付宝*/
- (IBAction)chooseZFB:(id)sender {
    _ZFBView.backgroundColor = APPCOLOR;
    _WeiChatView.backgroundColor = [UIColor whiteColor];
    _unionPayView.backgroundColor = [UIColor whiteColor];
    
    _payment(0);
}
/**选择微信*/
- (IBAction)chooseWeiChat:(id)sender {
    _ZFBView.backgroundColor = [UIColor whiteColor];
    _WeiChatView.backgroundColor = APPCOLOR;
    _unionPayView.backgroundColor = [UIColor whiteColor];
    
    _payment(1);
}
/**选择银联*/
- (IBAction)chooseUnionPay:(id)sender {
    _ZFBView.backgroundColor = [UIColor whiteColor];
    _WeiChatView.backgroundColor = [UIColor whiteColor];
    _unionPayView.backgroundColor = APPCOLOR;
    
    _payment(2);
}
/**隐藏支付方式View*/
- (IBAction)hiddenView:(id)sender {
    _payment(3);
}

@end
